<!doctype html>
<!--[if IE 6]>
<html id="ie6" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 7]>
<html id="ie7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html id="ie8" <?php language_attributes(); ?>>
<![endif]-->
<!--[if !(IE 6) & !(IE 7) & !(IE 8)]><!-->
<html <?php language_attributes(); ?>>
<!--<![endif]-->
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="">
    <meta name="keywords" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link rel="icon" type="image/png" href="assets/i/favicon.png">
    <link rel="stylesheet" href="<?php bloginfo('template_url');?>/assets/css/amazeui.min.css">
    <link rel="stylesheet" href="<?php bloginfo('template_url');?>/assets/css/app.css">
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url');?>">

    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
    <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <title>
        <?php wp_title(); ?>
    </title>

    <?php wp_get_archives('type=monthly&format=link'); ?>
    <?php wp_head();?>
</head>
<body <?php body_class(); ?>>
<!--[if lte IE 9]>
<p class="browsehappy">你正在使用<strong>过时</strong>的浏览器，Amaze UI 不提供支持。 请 <a
    href="http://browsehappy.com/" target="_blank">升级浏览器</a>
    以获得更好的体验！</p>
<![endif]-->

    <!-- 菜单栏 -->
    <nav data-am-widget="menu" class="am-topbar am-menu zeng-menu  am-menu-default">
        <a href="javascript: void(0)" class="am-menu-toggle"><i class="am-menu-toggle-icon am-icon-bars"></i></a>
        <ul class="am-menu-nav am-avg-sm-3">
             <?php
                global $cat;

                $cats = get_categories(array(
                    'orderby' => 'id',
                    'order' => 'asc',
                    'hide_empty' => 0
                ));
            ?>

            <?php foreach ($cats as $cat):?>
                    <?php if($cat->parent == 0):?>
                        <li class="am-parent"><a href="<?php echo get_category_link($cat);?>"><?php echo $cat->name;?></a>
                        <!-- 二级分类循环 -->
                            <ul class="am-menu-sub am-collapse  am-avg-sm-3">
                                <?php
                                    $sub_cats = get_categories(array(
                                        'child_of' => $cat->cat_ID,
                                        'hide_empty' => 0
                                    ));
                                ?>
                                <?php foreach ($sub_cats as $sub_cat):?>
                                    <li class="first"><a href="<?php echo get_category_link($sub_cat);?>"><?php echo $sub_cat->name;?></a></li>
                                <?php endforeach;?>
                            </ul>
                        <!-- 二级分类循环 -->
                        </li>
                    <?php endif;?>
            <?php endforeach; ?>
            <li class="ic"><a href="<?php bloginfo('url');?>" class="ic" title="<?php bloginfo('description'); ?>" ><?php bloginfo('name'); ?></a></li>
        </ul>
    </nav>
    <!-- 菜单栏 -->
    
    <!-- 心意花瓣 -->
    <id id="snowflake"></id>
    <!-- 心意花瓣 -->


    